// 时间格式
export function sysTime(AddDayCount){
  let myDate;
  if (AddDayCount instanceof Date){
    myDate = AddDayCount
  }else{
     myDate = new Date();
     myDate.setDate(myDate.getDate() + AddDayCount)
  }
  const year = myDate.getFullYear();
  const month = myDate.getMonth()+1;
  const date = myDate.getDate();
  const h = myDate.getHours();
  const m = myDate.getMinutes();
  const s = myDate.getSeconds();
  const now = year + '-' +(month < 10 ? "0" :"")+ month + "-"+((date < 10 ? "0" :"")) +date + " " + ((h < 10 ? "0" :"")) + h + ':'+((m < 10 ? "0" :"")) + m + ":"+((s < 10 ? "0" :"")) + s;
  return now;
}
